<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<t:base type="jquery,easyui,tools"></t:base>
		<script type="text/javascript">
			$(function() {
				var t = $('#cc').combotree({
					url : 'systemController.do?setPtype&TSTypegroup.id='+'<%=request.getAttribute("typegroupid")%>',
					onLoadSuccess : function(data) {
						
					},
				});
			});
			//402881e5406d9cd701406d9e5a5f0002
			
		</script>
	</head>
	<body style="overflow-y: hidden" scroll="no">
		<t:formvalid formid="formobj" layout="div" dialog="true"
			action="systemController.do?saveType">
			<input name="id" type="hidden" " value="${type.id }">
			<input name="TSTypegroup.id" type="hidden" value="${typegroupid}">
			<fieldset class="step">
				<div class="form">
					<label class="Validform_label">
						类型名称:
					</label>
					<input name="typename" class="inputxt" value="${type.typename }"
						datatype="*">
					<span class="Validform_checktip"></span>
				</div>
				<div class="form">
					<label class="Validform_label">
						类型编码:
					</label>
					<input name="typecode" class="inputxt"
						ajaxurl="systemController.do?checkType&code=${type.typecode }&typeGroupCode=${type.TSTypegroup.typegroupcode}"
						value="${type.typecode }">
					<span class="Validform_checktip"></span>
				</div>
				
				<c:if test="${typegroup.codetype=='2'}">
					<div class="form">
						<label class="Validform_label">
							上级编码:
						</label>
						<input id="cc" name="TSType.id" value="${type.TSType.id}">
					</div>
				</c:if>
				<div class="form">
					<label class="Validform_label">
						附加值:
					</label>
					<textarea class="textareaclass" id="value" name="value">${type.value}</textarea>
					<span class="Validform_checktip"></span>
				</div>
			</fieldset>
		</t:formvalid>
	</body>
</html>
